package com.joolun.mall.service;

import com.joolun.common.core.domain.AjaxResult;
import com.joolun.mall.dto.JDCancelOrderResultDTO;
import com.joolun.mall.dto.JDDeliveryParamDTO;
import com.joolun.mall.dto.JDEstimatedFreightsParamDTO;
import com.joolun.mall.dto.JDFreightResultDTO;

import java.util.List;

/**
 * @author quyang
 * @description
 * @date 2022/1/2
 */
public interface LogisticsService {

    /**
     * 查运费和时效
     * @param body
     * @return
     */
    List<JDFreightResultDTO> queryEstimatedFreights(JDEstimatedFreightsParamDTO body);

    AjaxResult delivery(JDDeliveryParamDTO body);

    /**
     * 取消运单
     * @param deliveryNo
     * @return
     */
    JDCancelOrderResultDTO cancelOrder(Integer logisticsId, String deliveryNo);
}
